{% extends "base.html" %}


{% block headtitle %}Admin: Trips{% endblock %}
{% block pagetitle %}Admin: Trips{% endblock %}

{% block content %}

{% if trip_id %}
<form method="POST" action="{% url admin_trip_update trip_id %}">
{% else %}
<form method="POST" action="{% url admin_trip_add %}">
{% endif %}
<table class="form">
{{ form.as_table }}
</table>
 <p><input type="submit" value="Save" /></p>
</form>

{% endblock %}
